#ifndef SEAMCARVINGRESIZE_H
#define SEAMCARVINGRESIZE_H

#include <iostream>
#include <queue>
#include <QImage>
#include <QThread>
#include <QtGui>
#include "Layer/layer.h"
#include "Redimension/seams.h"
#include "Redimension/seam.h"


class Redimension;

class DrawingArea;


class SeamCarvingResize : public QThread
{

public :

        SeamCarvingResize(DrawingArea* drawing, Layer* layer, int newWidth, int newHeight);
	virtual void run();

private : 
	int newWidth;
	int newHeight;
        DrawingArea* drawing;
        Layer* layer;

        void increaseX();
        void increaseY();
        void decrease();
        void decreaseX();
        void decreaseY();
};

   
#endif
